import request from '@/utils/requestUtil'

export function createProductCollection(id) {
	return request({
		method: 'POST',
		url: '/product/info/collectProductById/'+id,
	})
}

export function deleteProductCollection(params) {
	return request({
		method: 'POST',
		url: '/user/deleteProductCollection',
		params: params
	})
}

export function fetchProductCollectionList(params) {
	return request({
		method: 'GET',
		url: '/user/getAllCollectInfos',
		params:params
	})
}

export function productCollectionDetail(params) {
	return request({
		method: 'GET',
		url: '/member/productCollection/detail',
		params: params
	})
}

export function clearProductCollection() {
	return request({
		method: 'POST',
		url: '/member/productCollection/clear'
	})
}
